﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using IESN.BusinessCore;

namespace IESN.BaseForms
{
    public partial class BaseFrm : DevExpress.XtraEditors.XtraForm
    {
        protected AppContext _appContext;
        protected Controller _controller;

        public BaseFrm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 按回车相当于TAB
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BaseFrm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                SendKeys.Send("{TAB}");
            }
        }
    }
}